﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TomShane.Neoforce.Controls;
using Microsoft.Xna.Framework.Graphics;

namespace XGame.Class
{
    class ParcelBody:ImageBox
    {
        const int x = 5, y = 8;
        public ToolCell[,] Cells;
        public ParcelBody(Manager Manager)
            : base(Manager)
        {
            Cells = new ToolCell[x,y];
        }
        public override void Init()
        {
            base.Init();
            this.Image = Manager.Content.Load<Texture2D>(@"Content\Image\Interface\Plate\ParcelBody");
            this.Width = 207;
            this.Height = 350;

            for (int i = 0; i < x; i++)
            {
                for (int j = 0; j < y; j++)
                {
                    Cells[i, j] = new ToolCell(Manager, "", ToolIcon.GetAllType(ToolIcon.Type.Skill));
                    Cells[i, j].Init();
                    Cells[i, j].Left = 7 + i * 39;
                    Cells[i, j].Top = 6 + j * 39;
                    Cells[i, j].Parent = this;
                }
            }
        }
    }
}
